package business.dados;


public class PostgreSQLConnection
{

//	private Configuration config = null;
	
	public void factorySession() throws Exception
	{		
//		SessionFactory factory;
//		
//		config = new Configuration();
		
		/* Propriedades */
//		config.setProperty("hibernate.dialect", "org.hibernate.dialect.PostgreSQLDialect");
//		config.setProperty("hibernate.connection.driver_class", "org.postgresql.Driver");
//		config.setProperty("hibernate.connection.url", Properties.URL());
//		config.setProperty("hibernate.connection.username", "raiodosol");
//		config.setProperty("hibernate.connection.password", "pos73dda");
//		config.setProperty("hibernate.transaction.auto_close_session", "true");
//		config.setProperty("hibernate.show_sql", "true");
//		config.setProperty("hibernate.format_sql", "true");
		
		/* Mapeamentos */		
//		for(String mapeamento : Properties.MAPEAMENTO())
//		{
//			config.addResource(mapeamento);
//		}
//		
//		factory = config.buildSessionFactory();
//		
//		return factory.openSession();
	}

}
